package com.peng._05weibo.common.response;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * 响应状态码枚举类
 * @Author peng
 * @Date 2024-04-25 15:28
 */
@AllArgsConstructor
@Getter
public enum StatusCode {
    SUCCESS(2001,"成功"),
    ERROR(2002,"失败"),
    LOGIN_SUCCESS(1001,"登录成功"),
    NOT_LOGIN(1000,"未登录"),
    WRONG_PASSWORD(1002,"密码错误"),
    WRONG_USERNAME(1003,"用户名错误"),
    USERNAME_OCCUPIED(1004,"用户名已占用"),
    VALIDATED_ERROR(3002,"请求参数错误");
    private final Integer code;
    private final String msg;
}
